/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.assign2.ispcomplies.Impl;

import za.ac.cput.assign2.ispcomplies.ICaller;
import za.ac.cput.assign2.ispcomplies.Sender;

/**
 *
 * @author Sisanda
 */
public class Contacts implements ICaller, Sender 
{
    String name;
    String emailAddress;
    String address ;
    String tel;

    public void setName(String name) {
       this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setEmailAddress(String email) {
        emailAddress = email;
    }

    public String setEmailAddress() {
        return emailAddress;
    }

    public void setTel(String telephone) {
        tel = telephone;
    }

    public String getTel() {
        return tel;
    }

    public void SetAddress(String address) {
        this.address = address;
    }

    public String GetAddress() {
        return address;
    }

    public String GetContact()
    {
        return "Name: " +name+ " Email Address: " +emailAddress+ " Home Address: " +address+ " Tel. No: " +tel;
    }

    @Override
    public void setAddress(String addre) {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    @Override
    public String getAddress() {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    @Override
    public String getEmailAddress() {
        throw new UnsupportedOperationException("Not supported yet.");
    }

   
    
    
}
